package com.android.powerbankpad.download;

import com.android.powerbankpad.bean.GetAudioBean;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface DownObservable {
    @Streaming
    @GET()
    Observable<ResponseBody> downloadApk(
            @Url String apkUrl
    );

    @Streaming
    @GET()
    Observable<ResponseBody> downloadAudio(
            @Url String audioUrl
    );

    @FormUrlEncoded
    @POST()
    Observable<GetAudioBean> getAudio(
            @Url String url,
            @Field("sn") String sn
    );
}
